from Page.page1 import Page1
from selenium.webdriver.common.by import By
class Page3(Page1):
    login_loc =(By.XPATH,'//*[@id="app"]/div/section/aside/ul/li/ul/li[4]/a')
    def login(self):
        self.click(self.login_loc)
    username_loc = (By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/div[2]/div[1]/div/input')
    def username(self):
        self.sendkeys(self.username_loc,'admin')
    password_loc = (By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/div[2]/div[2]/div/input')
    def password(self):
        self.sendkeys(self.password_loc,'admin')
    loginbtn_loc  =(By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/div[2]/button[2]')
    def loginbtn(self):
        self.click(self.loginbtn_loc)
    sure_loc = (By.XPATH,'/html/body/div[1]/div/section/section/main/div[2]/div/div/div/div[2]/button[2]/span')
    def sure(self):
        self.click(self.sure_loc)
    #弹窗确认
    input_loc = (By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/form/div[1]/div/div/div/input')
    def input(self):
        self.sendkeys(self.input_loc,'腾讯')
    search_loc= (By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/form/div[2]/div[1]/div/div/button/span')
    def search(self):

        self.click(self.search_loc)
